home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: Invalid Indirection???
- Date: Fri, 15 Mar 96 16:03:07 GMT
- Organization: none
- Message-ID: <826905787snz@genesis.demon.co.uk>
- References: <4i7cck$t67@infa.central.susx.ac.uk>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4i7cck$t67@infa.central.susx.ac.uk>
- taux5@central.susx.ac.uk "Doan Nguyen" writes:
-
- >float tempa, tempb, tempi, tempj [NPIC-1];
-
-
- ...
-
- > tmp = (tempi[i]*tempj[i])+(tempi[i+1]*tempj[i+1]));
- >
- >/* This is where the compiler stops and says there's an invalid
- >indirection for the "tmp" assignment */
-
- There is an extra ) at the end of the expression but that particular error
- is due to the fact that you are trying to dereference tempi as an array or
- pointer but you haven't defined it as an array or pointer.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-